Programming Android by Zigurd Mednieks Laird Dornin G. Blake Meike & Masumi Nakamura
Author:Zigurd Mednieks, Laird Dornin, G. Blake Meike & Masumi Nakamura [Zigurd Mednieks, Laird Dornin, G. Blake Meike, and Masumi Nakamura]
Language: eng
Format: epub
Tags: COMPUTERS / Programming Languages / General
ISBN: 9781449318543
Publisher: O'Reilly Media
Published: 2012-09-27T16:00:00+00:00
Function that fashions a query based on the user’s requested sort column (the sortBy parameter) and returns results as a cursor.
Creates the query string. Most of the string is static (the QUERY variable), but this line tacks on the sort column. Even though QUERY is private, it is still available to the enclosing class. This is because the getJobs method and the JobsCursor class are both within the MicroJobsDatabase class, which makes JobsCursor’s private data members available to the getJobs method.
To get the text for the sort column, we just run toString on the enumerated parameter passed by the caller. We could have defined an associative array, which would give us more flexibility in naming variables, but this solution is simpler. Additionally, the names of the columns pop up quite nicely using your IDE’s autocompletion.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Android | E-Readers |
Handheld & Mobile Devices | iPad |
iPhone | Programming & App Development |
Tablets |
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6273)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6002)
Kotlin in Action by Dmitry Jemerov(4681)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2357)
Learning Angular - Second Edition by Christoffer Noring(2184)
Pride and Prejudice by Jane Austen(2118)
Mobile Forensics Cookbook by Igor Mikhaylov(1827)
Computers For Seniors For Dummies by Nancy C. Muir(1788)
Bulletproof Android: Practical Advice for Building Secure Apps (Developer's Library) by Godfrey Nolan(1683)
Building Android UIs with Custom Views by Raimon Ràfols Montané(1634)
Android Development with Kotlin by Marcin Moskala & Igor Wojda(1632)
Building Progressive Web Apps: Bringing the Power of Native to the Browser by Ater Tal(1547)
1936941139 (N) by Bob Rosenthal(1517)
Android App Development by Franceschi Hervé J.;(1510)
Ember.js in Action by Joachim Haagen Skeie(1487)
Hands-On Internet of Things with MQTT by Tim Pulver(1462)
Hands-On Design Patterns with React Native by Mateusz Grzesiukiewicz(1450)
Practical Industrial Internet of Things Security by Sravani Bhattacharjee(1330)
Voice User Interface Projects by Henry Lee(1283)